import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useTaskCountStore = defineStore('taskCount', () => {
  
  const todo = ref(0)
  
  const toRead = ref(0)
  const redirect = ref(0)
  
  function setTodo(val:number) {
    todo.value = val;
  }

  function setToRead(val:number){
    toRead.value=val;
  }

  function setRedirectCount(val:number){
    redirect.value = val;
  }

  return { todo, toRead, setTodo ,setToRead,redirect,setRedirectCount}
})
